export const BASE_ENV = process.env.NODE_ENV;

let server = "";
let goodsserver = "";
let passportadress = "";
let userserver = "";
let passport = "";
let freeplay = "";
let phonepage = "";
let domainUrl = "";
let listdomain = "";

if (BASE_ENV == "prd") {
  server = "http://api8.xubei.com/b";
  goodsserver = "http://api8.xubei.com";
  passportadress = "http://passport.xubei.com";
  userserver = "http://user-server.xubei.com";
  passport = "http://passport-server.xubei.com";
  freeplay = "http://common-server.xubei.com";
  phonepage = "http://b.xubei.com/forfree";
  domainUrl = "http://www.xubei.com";
  listdomain = "http://list.xubei.com";
} else if (BASE_ENV == "pre") {
  server = "http://api8.xubei-prd.com/b";
  goodsserver = "http://api8.xubei-prd.com";
  passportadress = "http://passport.xubei-prd.com";
  userserver = "http://user-server.xubei-prd.com";
  passport = "http://passport-server.xubei-prd.com";
  freeplay = "http://common-server.xubei-prd.com";
  phonepage = "http://b.xubei-prd.com/forfree";
  domainUrl = "http://www.xubei-prd.com";
  listdomain = "http://list.xubei-prd.com";
} else if (BASE_ENV == "dev") {
  server = "http://api8.xubei-test.com/b";
  goodsserver = "http://api8.xubei-test.com";
  passportadress = "http://passport.xubei-test.com";
  userserver = "http://user-server.xubei-test.com";
  passport = "http://passport-server.xubei-test.com";
  freeplay = "http://common-server.xubei-test.com";
  phonepage = "http://b.xubei-test.com/forfree";
  domainUrl = "http://www.xubei-test.com";
  listdomain = "http://list.xubei-test.com";
} else {
  server = "http://api8.xubei-test.com/b";
  goodsserver = "http://api8.xubei-test.com";
  passportadress = "http://passport.xubei-test.com";
  userserver = "http://user-server.xubei-test.com";
  passport = "http://passport-server.xubei-test.com";
  freeplay = "http://common-server.xubei-test.com";
  phonepage = "http://b.xubei-test.com/forfree";
  domainUrl = "http://www.xubei-test.com";
  listdomain = "http://list.xubei-test.com";
}

export const SERVER = server;
export const GOODSSERVER = goodsserver;
export const PASSPORTADRESS = passportadress;
export const USERSERVER = userserver;
export const PASSPORT = passport;
export const FREEPLAY = freeplay;
export const PHONEPAGE = phonepage;
export const DOMAINURL = domainUrl;
export const LISTDOMAIN = listdomain;
export const TIMEOUTTIME = 50000;
